
#include "DarkGDK.h"
#include "global.h"
class planeEnv {
public:
	
	//TOUR PLANE
	void newTourPlane(int id) {

		
		int pick=dbRND(1);

		if (pick==0) {
			dbLoadObject("AIRPL011.x",id); 
			dbScaleObject(id,300,300,300);
		}
		if (pick==1) {
			dbLoadObject("AIRPL016.x",id);
			dbYRotateObject(id,180);
			dbFixObjectPivot(id);
		
		}
		
		dbRandomize(dbTimer());
		dbYRotateObject(id,dbRND(360));
		O[id][SL]= dbRND(30)*.1+3;
		O[id][RL]= (dbRND(5)*.1 +.05) * (1-dbRND(2)) +.01;

		dbPositionObject(id,dbRND(1000)-500,dbRND(20)+50,dbRND(1000)-500);

	}


};
